<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    }
    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }
    .sm-st-info {
        font-size: 12px;
        padding-top: 2px;
    }
    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }
    .orange {
        background: #fa8564 !important;
    }
    .tar {
        background: #45cf95 !important;
    }
    .sm-st .green {
        background: #86ba41 !important;
    }
    .pink {
        background: #AC75F0 !important;
    }
    .yellow-b {
        background: #fdd752 !important;
    }
    .stat-elem {
        background-color: #fff;
        padding: 18px;
        border-radius: 40px;
    }
    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }
    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }
    .st-red {
        background-color: #F05050;
    }
    .st-green {
        background-color: #27C24C;
    }
    .st-violet {
        background-color: #7266ba;
    }
    .st-blue {
        background-color: #23b7e5;
    }
    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }
    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }
    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }
    .stat.lg .name {
        font-size: 16px;
    }
    .stat-col .progress {
        height: 2px;
    }
    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }
    .item {
        padding: 30px 0;
    }
    #statistics .panel {
        min-height: 150px;
    }

    #statistics .panel h5 {
        font-size: 13px;
    }
</style>


<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            {if $admin.type=='0'}
            <li class="active"><a href="#first" data-toggle="tab">数据统计</a></li>
            {else /}
            <li class="active"><a href="#second" data-toggle="tab">数据统计</a></li>
            {/if}
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">

            {if $admin.type=='0'}
            <div class="tab-pane fade active in" id="first">

                <div class="row" style="margin-top:15px;">
                    <div class="col-lg-12">
                    </div>

                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-light-blue-gradient no-border">
                            <div class="panel-body">

                                <div class="ibox-title">
                                    <span class="label label-primary pull-right">{:__('Real time')}</span>
                                    <h5>{:__('今日总发送短信条数')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <h1 class="no-margins" >{$extend.tong.ok_dan_day}</h1>
                                    <small>{:__('总发送短信条数')}</small>
                                    <div class="stat-percent font-bold text-gray"><i class="fa fa-amazon"></i> {$extend.tong.ok_dan_all}</div>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-aqua-gradient no-border">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <span class="label label-primary pull-right">{:__('Real time')}</span>
                                    <h5>{:__('今日营业额')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <h1 class="no-margins">{$extend.tong.dan_day}</h1>
                                    <small>{:__('总营业额')}</small>
                                    <div class="stat-percent font-bold text-gray"><i class="fa fa-dollar"></i>{$extend.tong.dan_all}</div>

                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-purple-gradient no-border">
                            <div class="panel-body">

                                <div class="ibox-title">
                                    <span class="label label-primary pull-right">{:__('Real time')}</span>
                                    <h5>{:__('今日成本')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <h1 class="no-margins">{$extend.tong.money_day}</h1>
                                    <small>{:__('总成本')}</small>
                                    <div class="stat-percent font-bold text-gray"><i class="fa fa fa-dollar"></i> {$extend.tong.money_all}</div>

                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-6 col-md-3">
                        <div class="panel  bg-red-gradient no-border">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <span class="label label-primary pull-right">{:__('Real time')}</span>
                                    <h5>{:__('今日利润')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <h1 class="no-margins">{$extend.tong.money_profit}</h1>
                                    <small>{:__('总利润')}</small>
                                    <div class="stat-percent font-bold text-gray"><i class="fa fa fa-dollar"></i> {$extend.tong.money_profit_all}</div>

                                </div>
                            </div>
                        </div>
                    </div>



                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <div class="panel panel-default panel-intro panel-statistics">
                            <div class="panel-body">
                                <h4>数据趋势图</h4><br>
                                <div id="datefilter">
                                    <form id="form1" action="" role="form" novalidate class="form-inline">
                                        <a href="javascript:;" class="btn btn-primary btn-refresh"><i class="fa fa-refresh"></i></a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Today')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Yesterday')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 7 Days')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 30 Days')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last month')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('This month')}</a>


                                        <div class="input-group">
                                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                            <input type="text" class="form-control input-inline datetimerange" data-type="order"
                                                   placeholder="指定日期" style="width:270px;"/>
                                        </div>

                                    </form>
                                </div>
                                <div id="echarts1" style="height:400px;width:100%;margin-top:15px;"></div>
                            </div>
                        </div>
                    </div>
                </div>



            </div>


            {else /}

            <div class="tab-pane fade active in" id="second">


                <div class="col-xs-6 col-md-3">
                    <div class="panel bg-light-blue-gradient no-border">
                        <div class="panel-body">

                            <div class="ibox-title">
                                <span class="label label-primary pull-right">{:__('Real time')}</span>
                                <h5>{:__('今日总发送短信条数')}</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" >{$extend.tong.ok_dan_day}</h1>
                                <small>{:__('总发送短信条数')}</small>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-amazon"></i> {$extend.tong.ok_dan_all}</div>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="col-xs-6 col-md-3">
                    <div class="panel bg-aqua-gradient no-border">
                        <div class="panel-body">
                            <div class="ibox-title">
                                <span class="label label-primary pull-right">{:__('Real time')}</span>
                                <h5>{:__('今日消耗金额')}</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins">{$extend.tong.dan_day}</h1>
                                <small>{:__('总消耗金额')}</small>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-dollar"></i>{$extend.tong.dan_all}</div>

                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-xs-6 col-md-3">
                    <div class="panel bg-purple-gradient no-border">
                        <div class="panel-body">

                            <div class="ibox-title">
                                <span class="label label-primary pull-right">{:__('Real time')}</span>
                                <h5>{:__('今日发送成功数')}</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins">{$extend.tong.money_day}</h1>
                                <small>{:__('总发送成功数')}</small>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa fa-dollar"></i> {$extend.tong.money_all}</div>

                            </div>
                        </div>
                    </div>
                </div>


                <div class="col-xs-6 col-md-3">
                    <div class="panel  bg-red-gradient no-border">
                        <div class="panel-body">
                            <div class="ibox-title">
                                <span class="label label-primary pull-right">{:__('Real time')}</span>
                                <h5>{:__('可用余额')}（￥）</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins">{$admin_info.money}</h1>
                                <small>{:__('信用额度')}（￥）</small>
                                <div class="stat-percent font-bold text-gray">{$admin_info.credit_amount}</div>
                            </div>
                        </div>
                    </div>
                </div>



                <div class="row">
                    <div class="col-xs-12">
                        <div class="panel panel-default panel-intro panel-statistics">
                            <div class="panel-body">
                                <h4>数据趋势图</h4><br>
                                <div id="datefilter">
                                    <form id="form2" action="" role="form" novalidate class="form-inline">
                                        <a href="javascript:;" class="btn btn-primary btn-refresh"><i class="fa fa-refresh"></i></a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Today')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Yesterday')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 7 Days')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 30 Days')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last month')}</a>
                                        <a href="javascript:;" class="btn btn-success btn-filter">{:__('This month')}</a>

                                        <div class="input-group">
                                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                            <input type="text" class="form-control input-inline datetimerange" data-type="mex"
                                                   placeholder="指定日期" style="width:270px;"/>
                                        </div>

                                    </form>
                                </div>
                                <div id="echarts2" style="height:400px;width:100%;margin-top:15px;"></div>
                            </div>
                        </div>
                    </div>
                </div>


            </div>

            {/if}
        </div>
    </div>
</div>


